package ws;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Pattern;
import java.util.stream.Collectors;


/**
 * todo
 *
 * @author zhengshan
 * @Date 2023/2/28 11:25
 */
public class TestDemo4 {

    public static Pattern pattern1 = Pattern.compile("-?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?");
    public static Pattern pattern2 = Pattern.compile("^[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$");


    public static void main(String[] args) throws Exception {
       String ss = "0.0";
       ss = ss.replace(".", "");
        System.out.println(ss);

        BigDecimal a = new BigDecimal(ss);

       System.out.println(a);

    }
}
